package xyz.ieden.commons.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * Created by Gavin on 2017.08.05.
 */
public class RetInfo<T> implements Serializable {
    private Integer result;
    private Integer retCode;
    private String retMsg;
    private T t;

    // Setter and Getter Method
    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getRetCode() {
        return retCode;
    }

    public void setRetCode(Integer retCode) {
        this.retCode = retCode;
    }

    public String getRetMsg() {
        return retMsg;
    }

    public void setRetMsg(String retMsg) {
        this.retMsg = retMsg;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
